package cmd

import (
	cli "github.com/urfave/cli/v2"
)

var RootFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "eth.url",
		Aliases:     []string{"e.url"},
		Usage:       "eth node url",
		Value:       DefaultConfig.EthServer,
		Destination: &DefaultConfig.EthServer,
	},
	&cli.StringFlag{
		Name:        "http.url",
		Aliases:     []string{"h.url"},
		Usage:       "http server url",
		Value:       DefaultConfig.HttpServer,
		Destination: &DefaultConfig.HttpServer,
	},
	&cli.StringSliceFlag{
		Name:        "address",
		Aliases:     []string{"a", "addr"},
		Usage:       "watch address",
		Destination: cli.NewStringSlice(),
	},
	&cli.IntFlag{
		Name:    "debug.level",
		Aliases: []string{"l", "level"},
		Usage:   "debug log info level  (0:debug 1:info 2:warn 3:error 4:dpanic 5:panic 6:fatal)",
		Value:   1,
	},
	&cli.BoolFlag{
		Name:    "go.pprof",
		Aliases: []string{"p", "pprof"},
		Usage:   "golang pprof",
		Value:   false,
	},
}
